<template>
    <div class="first-page">
        <h1>基于vue2.x的各种功能</h1>
        <button @click="handleClick">加载指令</button>
        <div class="content" v-customLoading="loading">
            山东科技复健科四大皆空发撒科技大发卡机手打
        </div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            loading: false
        }
    },
    methods: {
        handleClick () {
            this.loading = true
            setTimeout(() => {
                this.loading = false
            }, 500)
        }
    }
}
</script>

<style lang="less" scoped>
.first-page {
    h1 {
        text-align: center;
    }
}

.content {
    height: 300px;
}
</style>
